package edu.zut.pioneer.notice.domain;


import edu.zut.pioneer.base.domain.BaseTree;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name="notice_type")

public class NoticeType extends BaseTree<NoticeType,Long> {

    @Column(name = "name")
    private String name;

    @Column(name = "date", nullable = false)
    private Date date;

    @Column(name = "content")
    private String content;


    public NoticeType() {
    }


    public NoticeType(Date date, String name, String content, int type_id) {
        this.name = name;
        this.date = date;
        this.content = content;

    }

    public String getName() {
        return name;
    }

    public Date getDate() {
        return date;
    }

    public String getContent() {
        return content;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
